﻿@model IEnumerable<SDE_FIC.Models.Matricula>
<link href="~/Content/PagedList.css" rel="stylesheet" type="text/css" />
@{
    ViewBag.Title = "Matricula";
    Layout = "~/Views/Shared/_Layout_Sistema.cshtml";
}

<h2>@ViewBag.Title</h2>

<p>
    @Html.ActionLink("Nova Matricula", "Create")
</p>

<table class="table table-bordered table-hover" style="width:700px;">
    <thead>
     <tr>
@*        <th>
            Id Matricula
        </th>*@
        <th>
            Data Matricula
        </th>
        <th>
            Nome
        </th>
@*        <th>
            Turma
        </th>*@
        <th>
            Situação
        </th>
@*        <th>
            Data Situação
        </th>*@
        <th>Ação</th>
    </tr>
    </thead>
@foreach (var item in Model) {
    <tr>
@*       <td>
            @Html.DisplayFor(modelItem => item.IdMatricula)
        </td>*@
        <td style="text-align:center;">
            @Html.DisplayFor(modelItem => item.DataMatricula)
        </td>
        <td> 
            @Html.DisplayFor(modelItem => item.Aluno.Nome)
        </td>
@*        <td>
            @Html.DisplayFor(modelItem => item.Turma.Descricao) - @Html.DisplayFor(modelItem => item.Turma.Curso.CursoNome)
        </td>*@
        <td style="text-align:center;">
            @Html.DisplayFor(modelItem => item.Situacao)
        </td>
@*        <td>
            @Html.DisplayFor(modelItem => item.DataSituacao)
        </td>*@
        <td style="text-align:center; width: 150px;">
            <a href="@Url.Action("Edit", "Matricula", new { id = item.IdMatricula })"><img src="~/Content/img/editar.png" alt="Editar"/></a>
            <a href="@Url.Action("Details", "Matricula", new { id=item.IdMatricula })"><img src="~/Content/img/detalhes.png" alt="Detalhes"/></a>
            <a href="@Url.Action("Delete", "Matricula", new { id = item.IdMatricula })"><img src="~/Content/img/excluir.png" alt="Excluir"/></a>
        </td>
    </tr>
}

     <tr><td colspan="4">Total </td></tr>

</table>